/**
 * 
 */
package kr.co.insoft.driver.model;

import java.io.Serializable;
import java.util.Date;

import kr.co.insoft.driver.util.NullExcludeTransformer;
import flexjson.JSONSerializer;

/**
 * @author IN-SOFT Inc. GoodwillDD(sylee@in-soft.co.kr)
 * 
 */
public class VolumeAttachmentModel implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4691115295567851038L;

	String volumeId;
	String instanceId;
	String device;
	String state;
	Date attachTime;
	Boolean deleteOnTermination;

	public String toString() {
		return (new JSONSerializer())
				.transform(new NullExcludeTransformer(), void.class)
				.exclude("*.class").deepSerialize(this);
	}

	/**
	 * @return the volumeId
	 */
	public String getVolumeId() {
		return volumeId;
	}

	/**
	 * @param volumeId
	 *            the volumeId to set
	 */
	public void setVolumeId(String volumeId) {
		this.volumeId = volumeId;
	}

	/**
	 * @return the instanceId
	 */
	public String getInstanceId() {
		return instanceId;
	}

	/**
	 * @param instanceId
	 *            the instanceId to set
	 */
	public void setInstanceId(String instanceId) {
		this.instanceId = instanceId;
	}

	/**
	 * @return the device
	 */
	public String getDevice() {
		return device;
	}

	/**
	 * @param device
	 *            the device to set
	 */
	public void setDevice(String device) {
		this.device = device;
	}

	/**
	 * @return the state
	 */
	public String getState() {
		return state;
	}

	/**
	 * @param state
	 *            the state to set
	 */
	public void setState(String state) {
		this.state = state;
	}

	/**
	 * @return the attachTime
	 */
	public Date getAttachTime() {
		return attachTime;
	}

	/**
	 * @param attachTime
	 *            the attachTime to set
	 */
	public void setAttachTime(Date attachTime) {
		this.attachTime = attachTime;
	}

	/**
	 * @return the deleteOnTermination
	 */
	public Boolean getDeleteOnTermination() {
		return deleteOnTermination;
	}

	/**
	 * @param deleteOnTermination
	 *            the deleteOnTermination to set
	 */
	public void setDeleteOnTermination(Boolean deleteOnTermination) {
		this.deleteOnTermination = deleteOnTermination;
	}

}
